package main

import (
	"github.com/gin-gonic/gin"
	"satellite/monitor/handler"
	"satellite/monitor/middleware"
)

func register(r *gin.Engine) {
	r.Use(middleware.CORS)
	r.GET("/api/satellite/list", handler.GetConnectionInfo)
	r.POST("/api/satellite/list", handler.SetConnectionInfo)
	r.GET("/api/command/traceroute", handler.GetTracerouteResultHandler)
	r.GET("/api/satellite/status", handler.GetLinkState)
	r.GET("/api/satellite/interfaces", handler.GetInterfacesHandler)
}
